import React, { memo } from 'react'
import { useLocalStorage } from './hooks'

export default memo(function App() {
  const [token, setToken] = useLocalStorage('token')

  function setTokenHandle() {
    setToken(Math.random() + '')
  }
  return (
    <div>
      <h1>App Page: {token}</h1>
      <button onClick={setTokenHandle}>设置token</button>
    </div>
  )
})
